Caster Postgres

SELECT CAST(SELECT CAST(_variable AS _tipo_variable))as  character varying into _variable
Ill Impala