Problem with ToHexString()

When I try and use ToHexString() on a variable, It crashes with “Member function not found in BrightScript Component or interface.”

Simple use such as


fadelevel = 255
print fadelevel.ToHexString()

Am I using it wrong?