Built-in predicate like type_in?: [list_of_types]

Couldn’t find smth relevant and made custom validation temporarily.
But may there is easier way to realise it?
Thanks.