Or better even, create a private `typeToString()` method that's analogous to `valueToString()`.