title: How can I convert an observable to a maybe?
body: <p>There are new convenience methods added to <code>rxjava2</code> added to accomplish a similar thing.</p>
  
  <ul>
  <li><p>toSingle() converts an <code>Observable</code> that emits a single item into a <code>Single</code> that emits that item</p></li>
  <li><p>toObservable() converts a <code>Single</code> into an <code>Observable</code> that emits the item emitted by the <code>Single</code> and then completes</p></li>
  </ul>
  
  <p>How do can I convert an <code>Observable</code> to a <code>Maybe</code>?</p>
  
  <p>(source: <a href="http://reactivex.io/documentation/single.html" rel="noreferrer">http://reactivex.io/documentation/single.html</a>)</p>