title: Java 8 Lambda - Stream filter change a value
body: <p>I need to change a value that I get from a filter</p>
  
  <pre><code>.stream()
  .filter(profile -&gt; profile.getValue().equals("test"))
  .findFirst()
  .map(profile -&gt; profile.setProperty(true))
  </code></pre>
  
  <p>I'm getting incompatible types: inferred type does not conform to upper bound(s), thanks</p>