code: public static <T> T extract(final DeviceAttribute da, final Class<T> type) throws DevFailed {
  	if (da == null) {
  	    throw DevFailedUtils.newDevFailed(ERROR_MSG_DA);
  	}
  	return TypeConversionUtil.castToType(type, extract(da));
      }
docs: Extract read and write part values to an object for SCALAR, SPECTRUM and IMAGE to the requested type
  
  @param <T>
  @param da
  @param type
  the output type (e.g. double[].class for SCALAR, double[].class for SPECTRUM, double[][].class for
  IMAGE)
  @return array of primitives for SCALAR, array of primitives for SPECTRUM, 2D array of primitives for IMAGE
  @throws DevFailed