HPCC-12443 Fix compile warnings from implicit type casts

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>