SyntaxFix
Write A Post
Hire A Developer
Questions
Since this is the first question from Google I'll add the JavaScript style typeof alternative here as well:
typeof
myObject.getClass().getName() // String