title: How can I cast a Integer to a String in EJBQL
body: <p>I got a Entity with a Integer</p>
  
  <pre><code>@Entity(name=customer)
  public Customer {
      ...
      @Column
      private int number;
      ...
      //getter,setter
  }
  </code></pre>
  
  <p>Now I want to cast this Integer in a query to compare it with an other value. </p>
  
  <p>I tried this Query:</p>
  
  <pre><code>"SELECT c FROM customer c WHERE CAST(c.number AS TEXT) LIKE '1%'"
  </code></pre>
  
  <p>But it doesn't work.</p>