Rune is updating the definition of the switch keyword to allow for discrimination based on an entities type.
See Rune Issue 1082
The new functionality will be included in a forthcoming update to the Rune DSL (9.65)
Potential Solutions:
Update the generator to support this capability.