Updated fromRaw and toRaw to rawValue

Fixed for Xcode 6.1 Beta 2.