Integer is a long in modern versions of iOS, the compiler produces a war...

...ning when treating it as an int.

Casting it as a long both allows correct compiliation across platforms.

http://stackoverflow.com/questions/16075559/why-does-an-nsinteger-variable-have-to-typecasted-to-type-long