Conditional based on variable type?

It works as described in the link I provided.

There's also the analogous strlen_P().