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