Use instanceof check.
Use instanceof check.
Use instanceof check.
Use instanceof check.
Use instanceof check.