and of course, instanceof should work as you expect