Handle quotes and casts

* Based on cassandra and cql versions