public void BasicVarChar_Convert_ToInteger_Success()
{
const string s = "78998";
var obj = Field.VarChar(s);
Assert.IsNotNull(obj);
Assert.IsInstanceOf<StringType>(obj.Type);
Assert.AreEqual(SqlTypeCode.VarChar, obj.Type.TypeCode);
Field result = null;
Assert.DoesNotThrow(() => result = obj.CastTo(PrimitiveTypes.Numeric(SqlTypeCode.Integer)));
Assert.IsNotNull(result);
Assert.IsInstanceOf<NumericType>(result.Type);
Assert.AreEqual(SqlTypeCode.Integer, result.Type.TypeCode);
Assert.AreEqual(78998, result);
}