title: Transformers.aliasToBean() argument type mismatch
body: <p>i have hibernate criteria with specific projection list:</p>
  
  <pre><code>criteria.setProjection(Projections.projectionList()
              .add(Projections.property("contract.autoId"), "contractId")
              .add(Projections.property("customer.firstName"), "firstName")
              .add(Projections.property("contract.startDate"), "startDate")
              .add(Projections.property("contract.endDate"), "endDate"));
  </code></pre>
  
  <p>I want to map the response of this criteria to the following DTO object:</p>
  
  <pre><code>public class Contract {
      private int contractId;
      private String description;
      private Date startDate;
      private Date endDate;
  }
  </code></pre>
  
  <p>The types of response for this criteria:<br>
  <a href="https://i.stack.imgur.com/9OLWO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9OLWO.png" alt="enter image description here"></a><br>
  So, first object has <strong>Long</strong> type, but in DTO <em>contractId</em> has <strong>int</strong> type.I don't have permission to change this dto object.<br>
  So, when i added <strong>ResultTransformer</strong> to my criteria:</p>
  
  <pre><code>criteria.setResultTransformer(Transformers.aliasToBean(Contract.class));
  </code></pre>
  
  <p>I got following exception:</p>
  
  <pre><code>java.lang.IllegalArgumentException: argument type mismatch
  </code></pre>
  
  <p>Is it possible to say to <strong>Transformers.aliasToBean</strong> to convert automatically value from Long type to int?</p>