code: public static String convertObjectToString(Object objData, Class<?> classData, Object objDefault)
      {
          try {
              objData = Converter.convertObjectToDatatype(objData, classData, objDefault);
          } catch (Exception ex) {
              objData = null;
          }
          if (objData == null)
              return null;
          return objData.toString();
      }
docs: Convert this object to an unfomatted string (ie., toString).
  @param properties The map object to get the property from.
  @param strKey The key of the property.
  @param classData The target class to convert the property to.
  @param objDefault The default value.
  @return The data in the correct class.