Inspectopedia
 
2024.3

Cast can be replaced with variable

Info
New
Last modified: 03 December 2024

Reports type cast operations that can be replaced with existing local or pattern variables with the same value.

Example:

After the quick-fix is applied:

New in 2022.3