Fix PR5421 by APInt'izing switch lowering.