code: public static Object extractWriteArray(final DeviceAttribute da, final AttrWriteType writeType,
  	    final AttrDataFormat format) throws DevFailed {
  	if (da == null) {
  	    throw DevFailedUtils.newDevFailed(ERROR_MSG_DA);
  	}
  	return InsertExtractFactory.getAttributeExtractor(da.getType()).extractWriteArray(da, writeType, format);
      }
docs: Extract write values to an object for SCALAR, SPECTRUM and IMAGE
  
  @param da
  @return single value for SCALAR, array of primitives for SPECTRUM and IMAGE
  @throws DevFailed