I'm a bit confused: I have a function, that takes an Object as argument. But the compiler does not complain if I just pass a primitive and even recognizes a boolean primitive as Boolean Object. Why is that so?
public …
Any way to cast java.lang.Double to java.lang.Integer?
It throws an exception
"java.lang.ClassCastException: java.lang.Double incompatible with java.lang.Integer"