Fix swapped args in type predicate