Remove instanceof check as per LexManos' request.