How to convert std::optional to unsigned in cpp? Is there a way to typecast optional unsigned variable to unsigned