ObjectExtensions.Cast<T>(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Casts the specified object to type T.
public static T Cast<T> (this object obj);
static member Cast : obj -> 'T
<Extension()>
Public Function Cast(Of T) (obj As Object) As T
Type Parameters
- T
The type to cast to
Parameters
- obj
- Object
The input object
Returns
T