Stop Xcode complaining about casting to NSUInteger.
Merge pull request #13 from edwardaux/master

Cast to mute Xcode warning