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