public static Int32 ToInt32(object value, Int32 def = 0) { if (value == null) { return(def); } return(TryParse.ToInt32(value.ToString(), def)); }