pub fn bool(state: &State<'_, '_>, value: &Value) -> Result<bool, Error>
Converts the value into a boolean value.
This behaves the same as the if statement does with regards to handling of boolean values.
{{ 42|bool }} -> true