Fixed NSInteger casts in NSLog statements.

It get rids of compiler warnings in the example.