public static bool IsPrimType(object x) { Type t = x as Type ?? Compiler.PrimType(x as Symbol); if (t == typeof(long) || t == typeof(double)) return true; return false; }