title: HashMap<String, Boolean> getValue returns Boolean but java tries to cast to String
body: <pre><code>    ArrayList&lt;HashMap&lt;String, Boolean&gt;&gt; list = new ArrayList&lt;&gt;();
  
      for (Sound s: drumThumper.soundsToe) {
          HashMap l = new HashMap&lt;String, Boolean&gt;();
          l.put(&quot;name&quot;, s.getSound().replace(&quot;.wav&quot;, &quot;&quot;));
          l.put(&quot;checkbox&quot;, s==drumThumper.selectedSoundToe);
          list.add(l);
      }
  
      SimpleAdapter simpleAdapter = new SimpleAdapter(activity.getApplicationContext(), list, R.layout.checkbox_list, new String[]{&quot;name&quot;, &quot;checkbox&quot;}, new int[]{R.id.name, R.id.checkbox});
      listPopupWindow.setAdapter(simpleAdapter);
  
      listPopupWindow.setOnItemClickListener((parent, view1, position, id) -&gt; {
          HashMap&lt;String, Boolean&gt; item = list.get(position);
          Map.Entry&lt;String,Boolean&gt; entry = item.entrySet().iterator().next();
          Boolean oldValue = entry.getValue();
          entry.setValue(!oldValue);
      });
  </code></pre>
  <p>but I'm getting <code>java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean at lambda$onToeLongClick$1(Dialogues.java:165)</code> on</p>
  <p><code>Boolean oldValue = entry.getValue();</code></p>
  <p>How can that be possible? The HashMap is obviously from <code>String</code> to <code>Boolean</code>. And I'm calling <code>.getValue</code> which even the intellisense says returns a <code>Boolean</code></p>