Many conversions from one datatype to another are handled automatically by the SAP ASE server. These are called implicit conversions. Other conversions must be performed explicitly with the convert, hextointt, intttohex, hextobigint, bintostr, strtobin, and biginttohex functions.
See Transact-SQL Users Guide for details about datatype conversions supported by the SAP ASE server.