static bool IsInt(this Type instanceType) { return instanceType == typeof(int) || instanceType == typeof(short) || instanceType == typeof(long); } }