(novy_typ)výraz nebo novy_typ(výraz)int *a; char *c; c = (char*)a;
typeid, pro porovnávání typůstringvector<char>struct record { int age; int height; } vector<char> buffer(sizeof(struct record)); struct record *r = reinterpret_cast<struct record*>(buffer.data());