code: public static String getAsFormattedString(Map<String,Object> map, String strKey, Class<?> classData, Object objDefault)
      {
          Object objData = map.get(strKey);
          try {
              return Converter.formatObjectToString(objData, classData, objDefault);
          } catch (Exception ex) {
              return null;
          }
      }
docs: Get this item from the map and convert it to the target class.
  Convert this object to an formatted string.
  @param map The map to pull the param from.
  @param strKey The property key.
  @param classData The java class to convert the data to.
  @param objDefault The default value.
  @return The propety value in the correct class.