Added support for Mysql2 adapter typecast as well as other adapters