psql specific casting of columns