This statement is ANSI SQL:2011 compliant. As an extension to ANSI, CAST permits the use of data attribute phrases.