Fixed type juggling in FilterBase::__invoke().