Hello, dear.
I wanted to pass any array to the method.
The problem arose with the transfer of an array of primitives, since the primitives are not derived from Object, respectively, and their arrays are the same.
Actually, the question is how to pass to the method an array of any primitives?
UPD: The variant with the transmission of multiple arguments ( public void someMethod(Object... args) ) does not suit me, since my argument type is processed through the Map<Class<?>, ISerializer> , therefore the sample is needed by the criterion of "array primitives. "