asOptional

Converts a preference of a nullable type to be an Optional of that same type instead.