I have an int where the value is supposed to represent a hex value but is stored without the 0x prefix. For example, int x is stored as 20 but is supposed to equal 32 because it is missing the 0x. How do I convert this so that the computer understands to interpret the int as hex rather than decimal?
EDIT: for example, I want to convert 50 to 0x50.