How can I cast an Object to an int in java?
first check with instanceof keyword . if true then cast it.