asSuccessful

Casts the current Result instance to Success<TResult>.

Return

The current instance as a Success<TResult>.

Throws

if the instance is not of type Success<TResult>.