title: Is there an elegant way to convert List<Double> into List<Number>?
body: <p>I have a function whose arguments are:</p>
  
  <pre><code> myFn(String, List&lt;Number&gt;, List&lt;Number&gt;)
  </code></pre>
  
  <p>The calling function has two objects of List which I want to use as the 2nd and third argument of the function. I get the compilation error:</p>
  
  <pre><code>The method myFn(String, List&lt;Number&gt;, List&lt;Number&gt;) in the type MyLib is not applicable for the arguments (String, List&lt;Double&gt;, List&lt;Double&gt;)
  </code></pre>
  
  <p>Is there an easy way to overcome this? Is there an easy way to cast the list of Double into a List of Number?</p>