Use instanceof operator