xcode5 complains about comparing 2 enums of not the same type