title: Translate numeric value to it's corresponding label using cell formatter from LinkedHashMap
body: <p>I'm trying to display the value from a LinkedHashMap by using the key on a column in a grid (PaginatedGrid).</p>
  
  <p>In the grid, I try casting the value from <code>public String format()</code> into short.</p>
  
  <p>In the  grid, the following is the code I've tried</p>
  
  <pre><code>grid.getField(MerchandiseSellerTargetsDS.FLD_TARGETTYPE).setCellFormatter(new CellFormatter() {
  
              @Override
              public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
                  short messageValue = ((Integer) value).shortValue();
                  return Messages.targetTypeMap.get(messageValue);
              }
          }); 
  </code></pre>
  
  <p>In Messages.java </p>
  
  <pre><code>public static LinkedHashMap&lt;Number, String&gt; targetTypeMap;
  
  targetTypeMap=new LinkedHashMap&lt;&gt;();
          targetTypeMap.put((short)1,"Value");
          targetTypeMap.put((short)2,"Unit");
  </code></pre>
  
  <p>I expect the column to be populated with the value from the map e.g. if the key is 1 "Value" is displayed and if 2 "Unit" is displayed. However, the column not populated (it appears blank when I execute). What could I have done wrong or is it how I cast?</p>