string propertyValue = "True";
PropertyInfo info = obj.GetType().GetProperty("MyProperty");
var targetType = Nullable.GetUnderlyingType(info.PropertyType);
targetType = info.PropertyType;
info.SetValue(obj, Convert.ChangeType(propertyValue, targetType), null);
Console.WriteLine("Property Value: " + obj.MyProperty);
public bool? MyProperty { get; set; }