You cannot express this specific case using Java code.
You may find an answer here about the reasons.
However, if you wish to use generics with integers, the Integer Java class supports genericity. It also implements every basic operations (+ - * / %) used by native int. In your example, you may use:
if (xNumber instanceof Integer)
of even
if (xNumber.getClass() == Integer.getClass())
as suggested by @Stultuske in the comments.
EDIT: The commentaries about the design of your class are also very true. You may want to re-design your code, so you won't have to check for the type of your generic object (especially since you're checking for a single class type).