PROPOSAL: toBoundedIntegral: an adaptation of fromIntegral that respects bounds