This statement is ANSI SQL:2011 compliant.
As an extension to ANSI, CAST permits the use of data attribute phrases such as FORMAT.
CAST ( UDT_expression AS character_data_type )
- An expression that results in a UDT data type.
- The data type, followed by any FORMAT, NAMED, or TITLE attribute phrases, to which the expression is to be converted.