CADETProcess.dataStructure.parameter.Bool.cast_value

CADETProcess.dataStructure.parameter.Bool.cast_value#

Bool.cast_value(value)[source]#

Convert integers 0 and 1 to their respective boolean values.

Parameters:
valueAny

Value to be cast.

Returns:
Union[bool, Any]

Boolean equivalent if value is 0 or 1; otherwise, the original value.