Removing volatile nature using const_cast
<p>I heard that volatile nature of a variable can be removed using const_cast operator.</p>

<p>In which scenarios we need to remove volatile nature of a variable ?
are there any good use cases ?
Is it dangerours operation, because we declared it as volatile thinking that it would be modified by external factors and removing volatile nature could stop modifications to it. Specially when volatile pointers are registers etc.</p>
