Get the data from a Success result. Throws if this result is a Failure
Intended mainly for Java callers. Kotlin code should prefer using a when statement for increased type-safety
when