cleanup: remove cast to pipe
cleanup: remove useless "Filter", "Function" and "Mode" cast