Convert to given type without errors by bounding values to target type limits.
assert((0).boundedConvert!uint == 0u); assert((42).boundedConvert!uint == 42u); assert((int.max).boundedConvert!uint == cast(uint) int.max); assert((-1).boundedConvert!uint == 0u);
See Implementation
Convert to given type without errors by bounding values to target type limits.