Add more cast to varchar for Postgres