Cast<TIn, TOut>(IDescribedObject<TIn>)
Casts the described object to a different type.
Declaration
public static IDescribedObject<TOut> Cast<TIn, TOut>(this IDescribedObject<TIn> describedObject)Parameters
| Type | Name | Description |
|---|---|---|
| IDescribedObject<TIn> | describedObject | The described object to cast. |
Returns
| Type | Description |
|---|---|
| IDescribedObject<TOut> | A new described object with the object cast to |
Type Parameters
| Name | Description |
|---|---|
| TIn | The input type of the described object. |
| TOut | The output type to cast to. |