Implement "switch" on entry type