Well actually ex42 any2bool is just the same of stdlib str2bool with these 2 lines added:
      when false then false
      when true then true
which avoid real boolean to raise an error when passed to the function.