Problem with switch on enumeration

So it is valid, but the IsValid node thinks it’s not? ( that’s what I see… )