internal static bool IsSkippingStrongTypeConversion(object obj) { if (obj == null) { return(true); } Type type = obj.GetType(); return(type.IsPrimitive || obj is string || type.IsDataContract() || !type.Namespace.StartsWith("Microsoft.Exchange") || (DDIHelper.HasSerializableAttribute(type) && type.Namespace.StartsWith("Microsoft.Exchange.Management.ControlPanel"))); }