Use dyn_cast instead of isa && cast. No functionality change.