Add an instanceOf helper.