Could you tell me why an explicit downcast of a numeric object (without prior upcast) is available only to an int, applying to other data types gives an invalidCastException error. With a preliminary upcast, everything is clear, but I expected that without a preliminary upcast, a downcast would not work.
Update. As corrected - we are talking about boxing / unboxing, and not about the downcast.
object. If there is nointyou will get the same error. - Grundy