I have a colleague here in my project, who is deeply against the use of instanceof
operator, because it "generates a lot of overhead", what is the reason for that? Is it true?
Is there another way to check the type of the Object instead of using it?
Because I find it very useful in some occasions.