dice = rand()%6 + 1; //Implicit cast here.
//If anytime types will change and will not be compatible with each other, compiler will tell you,
//allowing to deal with it properly instead of doing something undesireable.
There is const_cast<>(), dynamic_cast<>(), const_cast<>() and reinterpret_cast<>() which allows programmer to be sure that program does exactly what he wants