title: How to convert Map<String, Spending> object to `Observable<List<Spendings>>` on rxjava2?
body: <p>I am trying to migrate rxjava to rxjava2. </p>
  
  <pre><code>Map&lt;String, Task&gt; mCachedTasks;
  </code></pre>
  
  <p>I can convert it to <code>Observable&lt;List&lt;Task&gt;&gt;</code> by using the following line of code. <code>Observable.from(mCachedTasks.values()).toList()</code></p>
  
  <p>However, I cannot convert it on rxjava2. 
  1- I tried the following code.
  <code>Observable.fromIterable(mCachedTasks.values())</code> but it returns <code>Observable&lt;Task&gt;</code></p>
  
  <p>2- I also tried to use <code>fromArray</code> method, such as <code>Observable.fromArray(mCachedTasks.values().toArray())</code>. That gives me <code>Observable&lt;Object&gt;</code>.</p>
  
  <p>How can I convert <code>Map&lt;String, Task&gt;</code> to <code>Observable&lt;List&lt;Task&gt;&gt;</code> on rxjava2?</p>