Fix Xcode compilers warnings about implicit casts from long to NSUInteger