How to use Enum in Switch?