public DcmOtherByte GetOB(DicomTag tag) { DcmElement elem = GetElement(tag); if (elem is DcmOtherByte) return elem as DcmOtherByte; if (elem != null) throw new DicomDataException("Tried to access element with incorrect VR"); return null; }