SqlInt16 GetSqlInt16 (int i) { object value = GetSqlValue (i); if (!(value is SqlInt16)) throw new InvalidCastException ("Type is " + value.GetType ().ToString ()); return (SqlInt16) value; }