HPCC-11935 Fix Narrowing Conversions

Signed-off-by: jamienoss <james.noss@lexisnexis.com>