To convert a hexidecimal value to decimal you can use the Printf() Function.  This prints a formatted expression to the results file.

The format string you specify describes the format of each argument.  If you wish to convert a hex number to decimal you would use the "%d" format specifier.  The argument that follows this specifier is the hexidecimal value you want formatted to decimal format.

Please see example below:

[-] testcase HextoInt ()
 [ ] Integer myHex = 0xF
 [ ] Printf ("%d", myHex)


Note: To specify a hex value each number has a prefix of 0x (zero, lowercase letter X).  As noted in "myHex" variable in the above example.