Conditional based on variable type?

Noted on the negative! It was just quick typing without considering the type fully.

Does strlen() work with all data types?