CAST(expression AS datatype(length)) construction is a part of ANSI SQL-92 standard. So we have to support it.