As

''' <summary>
''' A wrapper for DirectCast function.
''' </summary>
Public Function [As](Of TResult)(ByVal value As Object) As TResult
    Return DirectCast(value, TResult)
End Function
Example:
Dim x As Object = "String"
Dim s = x.As(Of String)

Description

A wrapper for DirectCast function.

Details

Double click on the code to select all.

 

;