C26492 NO_CONST_CAST

Don't use const_cast to cast away const. See C++ Core Guidelines Type.3.