It worth noting that casting away const qualifier can have severe consequences. E.g. the compiler could have put a const variable to read-only memory.
const
EXP05-C. Do not cast away a const qualification