ASCII to HEX Converter

Hey guys!

Does anyone have the syntax to convert the Serial number from ASCII to HEX? I’m having problems with my RP’s API.