use const cast operator in oarchive