DotNext by Roman Sakno

<PackageReference Include="DotNext" Version="1.0.1" />

 Conversion

public static class Conversion
Provides task result conversion methods.
public static Task<O> Convert<I, O>(this Task<I> task) where I : O

Converts one type of task into another.

public static Task<O> Convert<I, O>(this Task<I> task, Converter<I, O> converter)

Converts one type of task into another.

public static Task<O> Convert<I, O>(this Task<I> task, Converter<I, Task<O>> converter)

Converts one type of task into another.

public static Task<T?> ToNullable<T>(this Task<T> task) where T : struct

Converts value type into nullable value type.