string hex = "142CBD"; // this returns 1322173 int intValue = int.Parse(hex, System.Globalization.NumberStyles.HexNumber);
string prefixedHex = "0x142CBD"; // this works, and returns 1322173 int intValue = Convert.ToInt32(prefixedHex , 16);