Not at my PC but yeah it's read as a string and to get the actual integer value you call toNum(string) or something similar. Hopefully that points you in the right direction :)
Edit: I'm no sure what you call toNum on, btw. Does CC have a string API?
Edit: got it...