The database server attempts any data conversion that makes sense. Some conversions, however, are not supported, such as INTERVAL to DATE, DATETIME to MONEY, CHAR to LIST, or CHAR to SET. Possibly you referenced the wrong variable or column. Check that you have specified the data types that you intended and that literal representations of data values are correctly formatted.