asSuccessful

Casts the current instance of Result to a Success type if it is a successful result.

Return

The current instance cast to Success<TResult>.

Throws

If the current instance is not of type Success<TResult>.