The const Keyword
Casting away const is using a cast operator to remove the const restriction.
const char * name = "Fred"; char * p = static_cast<char *>(name);
// throw away the const part
p[0] = 'D'; // name is now Dred
The use of cast operation such as static_cast and dynamic_cast is preferable to the traditional cast syntax.