select * from S3Object where cast(age AS int) > 12 This query is flagged as an error, even though it is a valid cast in SQL.