As Michael Pakhantsov notes, to_char works to convert to string. Similarly, to_date and to_timestamp are standard when converting strings to dates and timestamps, respectively. However, if you find that you need to perform a more exotic conversion (e.g. varchar2 to raw), then cast is your friend:
Number per line:
select cast(field as varchar2(30)) from table;
String to Raw:
select cast(field as raw(16)) from table;
Allan source share