private static Type GetObjectTypeOrNull(object arg) { if (null == arg) return null; return arg.GetType(); }