Use llvm::cast instead of reinterpret_cast.