Use Explicit Typecast

Converts an implicit typecast expression into an explicit.

Notes

Availability

From the context menus or via shortcuts:

  • when the edit cursor or caret is on an implicit typecast expression.

Example

string str = param1 as string;
Dim str As String = TryCast(param1, String)

Result:

string str = (string)param1;
Dim str As String = CType(param1, String)