Converts the specified value to another datatype.
cast (expression as datatype [(length | precision[, scale])])
When Java is enabled in the database, expression can be a value to be converted to a Java-SQL class.
When unichar is used as the destination datatype, the default length of 30 Unicode values is used if no length is specified.
select cast("01/03/63" as datetime) go
-------------------------- Jan 3 1963 12:00AM (1 row affected)
select title, cast(total_sales as char(12))
ANSI SQL – Compliance level: ANSI compliant.
Any user can execute cast.