def value_as(self, astype):
        return self.format.decoder(astype)(self.value())
    
    # Iterator convenience functions
Returns the value for the current id as the given type.
dataset/ETHPy150Open dokipen/whoosh/src/whoosh/postings.py/PostingReader.value_as