Telerik® JustCode™ by Progress

The Insert 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 cast (or a safe cast whenever appropriate) to the type of the expression standing on the left side of the assignment.


Language Support

Supported: C#, VB.NET

Not relevant: ASP.NET, XAML, JavaScript, HTML

To insert a cast

  1. Position the caret over the underlined expression.

  2. Press Alt+Enter. From the pop-up menu, select Insert Cast to 'type'

    Insert Cast Select
  3. The result is:

    Insert Cast Created

See Also

Other Resources