Added casting in ST_Transform functions