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