Read the bool value from lynx_value.
| Key | Description |
|---|---|
| [in] env | The environment in which lynx value runs, typically nullptr. |
| [in] value | lynx_value representing bool. |
| [out] result | The bool value. |
Returns lynx_api_ok if the API succeeded. Returns lynx_api_bool_expected if the types do not match.