instanceof and enum