Cast NSInteger/NSUInteger to eliminate 64-bit compiler warnings.