If I give a programmer a string such as "9223372036854775808" and I ask them to convert it to an integer, they might do the following in C++:
std::string s = ....
uint64_t val;
auto [ptr, ec] =
std::from_chars(s.data(), s.data() + s.size(), val);
if (ec != std::errc()) {} // I have an error !