Clearer type assertion within switch.