Returns the data content of the ResBuf object as a Boolean value.
Remarks
This method generates the OdError_InvalidResBuf exception when the stored data type does not correspond to the Bool type. If the stored value is an Integer type, this method casts it to a Boolean type and returns True when the value is non zero, or False when the value is zero.