Step - as_bool
as_bool · asBool · category: Strings and type conversion
Converts the value to a boolean: true/false strings in any case, numbers (0 is false); anything else is an error unless a CastPolicy says otherwise.
Forms
as_bool()
as_bool(arg1: CastPolicy)
Example
g.inject("true", "FALSE", 0).as_bool().to_list() // [true, false, false]