# getValueAsInteger method

int getValueAsInteger()

Gets the the field value as a 64-bit integer.

return The field value as a 64-bit integer. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    int getValueAsInteger() {
      Pointer<LongLong> pValueAsInteger = calloc();
      try {
        var err = biosealSDK.id3BiosealField_GetValueAsInteger(_pHandle.value, pValueAsInteger);
        if (err != BiosealError.success.value) {
          throw BiosealException(err);
        }
        final vValueAsInteger = pValueAsInteger.value;
        return vValueAsInteger;
      } finally {
        calloc.free(pValueAsInteger);
      }
    }