title: Criteria Query - Search for Integer using "like"
body: <p>How I can cast Integer to a String for Criteria Query?</p>
  
  <p>i.e.:</p>
  
  <pre><code>Predicate predicate = criteriaBuilder.like((Expression) root.get(filterKey),
                      "%" + filterValue + "%");
  </code></pre>
  
  <p>I wan to create filter for dataTable component.... and i.e. for ID value I want to get filter like this:</p>
  
  <p><em>If I type "1" I will get all items with ID containing "1" (223122 ID will be still correct)</em></p>