Why cast away const-ness?