in src/libraries/cast/include/m/cast/try_cast.h [96:107]
static constexpr decltype(auto)
do_cast(FromType v)
{
if constexpr (std::numeric_limits<ToType>::digits <
std::numeric_limits<FromType>::digits)
{
if (v > (std::numeric_limits<ToType>::max)())
throw std::overflow_error("v");
}
return static_cast<ToType>(v);
}