title: Convert Stream to IntStream
body: <p>I have a feeling I'm missing something here. I found myself doing the following</p>
  
  <pre><code>private static int getHighestValue(Map&lt;Character, Integer&gt; countMap) {
      return countMap.values().stream().mapToInt(Integer::intValue).max().getAsInt();
  }
  </code></pre>
  
  <p>My problem is with the silly conversion from <code>Stream</code> to  <code>IntStream</code> via the <code>mapToInt(Integer::intValue)</code></p>
  
  <p>Is there a better way of doing the conversion? all this is to avoid using <code>max()</code> from <code>Stream</code>, which requires passing a <code>Comparator</code> but the question is specifically on the convertion of <code>Stream</code> to <code>IntStream</code></p>