tools/reduce: remove cast in function parameter