Removes Warning that occurs when building for 64-bit systems

On 64-bit systems NSInteger is of type long, which results in a compiler warning when used in format strings. This pull requests casts the value to an int to get rid of the warning.