Do this conversion once rather than every time the predicate is applied, e.g.
```
checkNotNull(...);
final List<Type> typeList = Arrays.asList(types);
...
  return typeList.contains...
```
?