In addition to automatic type conversion, there are a number of functions to convert from one type to another:

String to number: use the VAL( ) function

Number to formatted string: use the STR( ) function

Date to string: use the DTOC( ) function

String to date: use the CTOD( ) function