Note the call to `reversed` in `to_int` -- MSB is at the beginning of the list, LSB at the end.