public static S.Exception FromError<T>(this ST.Result<T> @this) where T : object { Assert.IsType<ST.Error<T>>(@this); return ((ST.Error<T>)@this).Value; }
public static T FromOk<T>(this ST.Result<T> @this) where T : object { Assert.IsType<ST.Ok<T>>(@this); return ((ST.Ok<T>)@this).Value; }