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