Fix enum type conversion warning

Warning in Xcode 5.