I have Object
which can be double
or long
. How I can check whether type it have?
I have tried cast Object
to double
but if Object is long, error will occur (and vice versa for long
).
I have Object
which can be double
or long
. How I can check whether type it have?
I have tried cast Object
to double
but if Object is long, error will occur (and vice versa for long
).