Remove useless const_cast