Replaced toRaw with rawValue (Xcode 6.1 Beta 2 update)