code: private static Object setIntValue(Field member, Object retVal)
      {
          if (member != null)
          {
              if (member.getType().isAssignableFrom(byte.class))
              {
                  retVal = ((Integer) retVal).byteValue();
              }
              else if (member.getType().isAssignableFrom(short.class))
              {
                  retVal = ((Integer) retVal).shortValue();
              }
          }
          return retVal;
      }
docs: Sets the int value.
  
  @param member
  the member
  @param retVal
  the ret val
  @return the object