Type conversion is not supported (Error 1532)

SQL parameter conversion error. Internal connectivity error.

This error may also occur with an invalid use of the CAST function; for example, CAST(DATE( ) as Numeric).