# getValueAsBoolean method

bool getValueAsBoolean()

Gets the the field value as a boolean.

return The field value as a boolean. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    bool getValueAsBoolean() {
      Pointer<Bool> pValueAsBoolean = calloc();
      try {
        var err = biosealSDK.id3BiosealField_GetValueAsBoolean(_pHandle.value, pValueAsBoolean);
        if (err != BiosealError.success.value) {
          throw BiosealException(err);
        }
        final vValueAsBoolean = pValueAsBoolean.value;
        return vValueAsBoolean;
      } finally {
        calloc.free(pValueAsBoolean);
      }
    }