Replaces some depreciated methods

Mainly changes `.toRaw()` to `.rawValue`