We should create a range from the case labels directly, and then cast it to the type we care about rather than trying to convert it to the switch index type and then the type we care about. Bootstraps on x86_64-pc-linux-gnu  with no regressions.   Pushed. Andrew