Swift: Enumeration Type Safety Example