title: How to collect DoubleStream to List
body: <p>I have the following code:</p>
  
  <pre><code>Stream.of("1,2,3,4".split(",")).mapToDouble(Double::valueOf).collect(Collectors.toList());
  </code></pre>
  
  <p>I want to return <code>List&lt;Double&gt;</code>.</p>
  
  <p>This code doesn't compile.</p>
  
  <p>I see error:</p>
  
  <pre><code>Error:(57, 69) java: method collect in interface java.util.stream.DoubleStream cannot be applied to given types;
    required: java.util.function.Supplier&lt;R&gt;,java.util.function.ObjDoubleConsumer&lt;R&gt;,java.util.function.BiConsumer&lt;R,R&gt;
    found: java.util.stream.Collector&lt;java.lang.Object,capture#1 of ?,java.util.List&lt;java.lang.Object&gt;&gt;
    reason: cannot infer type-variable(s) R
      (actual and formal argument lists differ in length)
  </code></pre>
  
  <p>How to fix this issue?</p>