Reports redundant asInstanceOf casts and suggests removing them.
asInstanceOf
A cast is redundant if the type of expression is the same as the cast type.
Example:
"test".asInstanceOf[String]
After the quick-fix is applied:
"test"