private static Int32Type ConvertFrom(object o) { var type = new Int32Type(); type.SetValue(o); return(type); }
private static T ConvertTo <T>(Int32Type type) { if (type == null) { return(default(T)); } return(type.GetValue <T>()); }