Creates an optional instance with the given value present.
the value to be present, which can be null if nullable type