When creating `RangeValue` via the encapsulator, we're adding a number of seemingly unnecessary casts, we should get rid of these.