Overview

We have an ObjectToOptionalConverter since Spring Framework 4.1; however, we do not have a standard Converter for the inverse.

As discussed in https://github.com/spring-projects/spring-framework/issues/20433#issuecomment-453460055, it would beneficial to have an OptionalToObjectConverter.

Although its primary use would likely be in SpEL expressions, we should investigate whether it makes sense to register it by default in DefaultConversionService, especially since doing so would allow the OptionalToObjectConverter to be package-private like ObjectToOptionalConverter.

Related Issues

  • 20433