Use Explicit Typecast
In This Article
Converts an implicit typecast expression into an explicit.
#Notes
- The Use Explicit Typecast code provider is the functional opposite of Use Implicit Typecast.
#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)