private static bool IsNumber(object dotNetObject) { return dotNetObject != null && IsNumber(dotNetObject.GetType()); }