Transforms the Range object into a List of two elements (start and end).
List<int> toList() { return [start, end]; }