Fix for Xcode conversion warning when targeting for OS X

When targeting for OS X 10.8 SDK, Xcode displays the following error in `KWStub.m:185`:

> KWStub.m:185:54: Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'int'

The simple typecasting solves the problem.