code: private HDFSSegmentHandle asReadableHandle(SegmentHandle handle) {
          Preconditions.checkArgument(handle instanceof HDFSSegmentHandle, "handle must be of type HDFSSegmentHandle.");
          return (HDFSSegmentHandle) handle;
      }
docs: Casts the given handle as a HDFSSegmentHandle irrespective of its isReadOnly value.