Fixing implicit enum conversion warning from Xcode 5.1