25 Aug 2017 Definition and Usage. The CAST() function converts a value (of any type) into a specified datatype. Tip: Also look at the CONVERT() function..