Typecasting in thr reduceByKeyTest.cpp