Removed instanceof checks.
2.2.3