public static decimal? ToDecimal (this ITextControl control) { return control.Text.ToDecimal (); } public static int? ToInt32 (this ITextControl control)