Make casting operator overloads available to isinst-like(as in C#, TryCast in VB) operations.
This should also allow you to cast from unspecified type to anything as long as the actual type of the source object can cast to target type.
Install-Package As -Version 0.3.0
dotnet add package As --version 0.3.0
<PackageReference Include="As" Version="0.3.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add As --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.