title: Convert array to the type of Observable<T[]>
body: <p>I want to convert an array to type <code>Observable&lt;T[]&gt;</code> and have used the rxjs method "from". But it returns <code>Observable&lt;T&gt;</code>, Is there a way to convert an array to <code>Observable&lt;T[]&gt;</code>? </p>
  
  <pre><code>Player: Observable&lt;T[]&gt;;
  
  convert(){
  let tempArr:T[] = Object.values(data) as T[];
  let Obsobj = from(tempArr);
  this.Player = Obsobj;
  }
  </code></pre>
  
  <p>This is the error message I got,
  <code>Observable&lt;T&gt;</code> is not assignable to type <code>Observable&lt;T[]&gt;</code></p>
  
  <p>EDIT</p>
  
  <p>Even though using following code snippet return type isn't as expected. </p>
  
  <pre><code>let $sub = new Subject&lt;Array&lt;T&gt;&gt;();
  $sub.next(tempArr);
  this.Player$ = $sub.asObservable();
  </code></pre>
  
  <p>Since I want the return observable type to be as follows.</p>
  
  <pre><code>Observable {_isScalar: false, source: Observable, operator: MapOperator}
  </code></pre>
  
  <p>but returned the following. </p>
  
  <pre><code>Observable {_isScalar: false, source: Subject}
  </code></pre>
  
  <p><strong>EDIT #2</strong></p>
  
  <p>complete code snippet. </p>
  
  <pre><code>Player: Observable&lt;B[]&gt;;
  
  convert(data: Dictionary&lt;B&gt;){
     let tempArr:B[] = Object.values(data) as B[];
     let $sub = new Subject&lt;Array&lt;B&gt;&gt;();
     $sub.next(tempArr);
     this.Player$ = $sub.asObservable();
  }
  </code></pre>
  
  <p>What is the issue here? Any help?</p>