[TIMOB-16697] Fix Implicit conversion warning

If you turn on the Xcode flag to warn about implicit 32 bit conversion, these files will show warnings.