private Int32? getInt32( Object value ) { if (value != null) { if (value is int) return (Int32) value; return null; } return null; }