Remove redundant casts

MSAL

Removes unnecessary type casts. Does not currently check casts in lambdas and class constructors. Redundant casts add visual noise and can obscure the actual type relationships in the code, making it harder to follow the data flow.

org.openrewrite.staticanalysis.RemoveRedundantTypeCast
mod run . --recipe=org.openrewrite.staticanalysis.RemoveRedundantTypeCast

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.