I have a generic class with a method that should return either primitives (in case a parameter is a wrapper object to a primitive type (e.g. Number)) or an instance of the c