code: public static Object convertObjectToDatatype(Object objData, Class<?> classData, Object objDefault)
          throws Exception
      {
          return DataConverters.convertObjectToDatatype(objData, classData, objDefault, -1);
      }
docs: Get this property from the map and convert it to the target class.
  @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.