The Insert Safe Cast quick fix is available once Telerik® JustCode™ has detected a type mismatch that cannot be resolved implicitly. Telerik® JustCode™ underlines the type mismatch expression and suggests you to automatically insert a safe cast (or a cast) to the type of the expression standing on the left side of the assignment.
Supported: C#, VB.NET
To insert a safe cast
Position the caret over the underlined expression.
Press Alt+Enter. From the pop-up menu, select Insert Safe Cast to 'type'
The result is: