Find unsafe as casts

Proprietary

x as T throws ClassCastException on mismatch — there's no diagnostic, just the JVM exception. x as? T returns null on mismatch and folds into elvis/requireNotNull(...) with a better message.

org.openrewrite.kotlin.idiom.FindUnsafeCast$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.idiom.FindUnsafeCast$KtRecipe'

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