mlir::dyn_cast/cast/isa
Fix compiler warning caused by using deprecated interface (https://github.com/llvm/llvm-project/pull/90413)