Change toRaw() to rawValue for iOS 8.1