toEither

fun toEither(): Either<E, A>

Converts the value to an Either