[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.
Merge pull request #6328 from vishalduggal/timob-16697

[TIMOB-16697] Fix Implicit conversion warning