Details
Description
It's fairly difficult to convert between Optional<Integer> and OptionalInt and vice-versa. This also applies to the Long and Double specializations. The workaround is to use streams, but this is quite roundabout.