Use enumeration types for stricter type checking.