title: convert a list of long to a list of int java 8
body: <p>I have a method which takes a list of integer as parameter. 
  I currently have a list of long and want to convert it to a list of integer so I wrote :</p>
  
  <pre><code>  List&lt;Integer&gt; student =
    studentLong.stream()
    .map(Integer::valueOf)
    .collect(Collectors.toList());
  </code></pre>
  
  <p>But I received an error:</p>
  
  <pre><code>method "valueOf" can not be resolved. 
  </code></pre>
  
  <p>Is it actually possible to convert a list of long to a list of integer?</p>