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