Simplify pointerType string conversion

Checking if `pointerType` is a number should be sufficient. Untested.