code: private Object prepareForDirectUsage(Class expectedClass, Object pArgument) {
          Class givenClass = pArgument.getClass();
          if (expectedClass.isArray() && List.class.isAssignableFrom(givenClass)) {
              return convertListToArray(expectedClass, (List) pArgument);
          } else {
          	return expectedClass.isAssignableFrom(givenClass) ? pArgument : null;
          }
      }
docs: Returns null if a string conversion should happen