public static <T> T extractRead(final DeviceAttribute da, final AttrDataFormat format, final Class<T> type)
	    throws DevFailed {
	if (da == null) {
	    throw DevFailedUtils.newDevFailed(ERROR_MSG_DA);
	}
	return TypeConversionUtil.castToType(type, extractRead(da, format));
    }
public static < T > T extractRead ( final DeviceAttribute da , final AttrDataFormat format , final Class < T > type ) throws DevFailed { if ( da == null ) { throw DevFailedUtils . newDevFailed ( ERROR_MSG_DA ) ; } return TypeConversionUtil . castToType ( type , extractRead ( da , format ) ) ; }
Extract read 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 single value for SCALAR, array of primitives for SPECTRUM, 2D array of primitives for IMAGE
@throws DevFailed