Convert Hexadecimal to Decimal JS

I am trying to convert a hexadecimal number in string format to a decimal.

Debug.Log(parseInt(hexInput,16).ToString(10));

The error says:

No appropiate version of ‘UnityScript.Lang.UnityBuiltins.parseInt’ for the argument list ‘(String,int)’ was found.
Please could you help me to either work around this or tell me what I am obviously doing wrong, I would be very grateful.

http://www.geekpedia.com/KB8_How-do-I-convert-from-decimal-to-hex-and-hex-to-decimal.html

Thank you this was just what I was looking for!