title: how to resolve Inconvertible types error in Maven
body: <p>I am using maven 3.0.5 and JDK 1.7.0_17. When i run maven using mvn install i get the following error in many places wherever conversion happens and in JBoss it's showing as Warning.</p>
  
  <p><strong>[ERROR] \Workspace\my-app\src\controller\ChangeNoterController.java:[159,43] error: inconvertible types</strong></p>
  
  <p>The code for the above line is:</p>
  
  <pre><code>                    if (resultMap != null) {
          changeNoteList = (List&lt;ChangeNoter&gt;) resultMap.get("changeNoterList");
          changeNoteListSize = (int) resultMap.get("changeNoterListSize");        --error
      }
  </code></pre>
  
  <p>I get the same "Inconvertible types" error in maven wherever this conversion happens in java which is showing as warning in Java.</p>
  
  <p>I would be grateful if someone helps me in this.
  Thanks in advance.</p>