Use llvm::cast<> instead of llvm::dyn_cast<> where appropriate.