Is there a way to check if an enum is a specific case without switching on it?

Sadly enums are still a bit behind structs in this language. There seems to be a desire to improve the situation but there hasn't been any actual movement AFAIK yet :(