Eliminate compiler warning by casting NSInteger to int

I'm seeing a warning in Xcode that complains about an implicit cast from `long` to `int`. Would it be possible to accept this pull request to reduce the warning?

![screen shot 2014-01-31 at 5 15 02 pm](https://f.cloud.github.com/assets/442307/2056503/9641df36-8ade-11e3-8ee1-a399083f6c37.png)