[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 #6329 from vishalduggal/timob-16697-34X

[TIMOB-16697] (3_4_X) Fix Implicit conversion warning