ClassCastException is now catched in applyFilter