You can't switch on a pointer.