HPCC-12442 Fix compile warnings from implicit type casts

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