λ(nix : ../NixPrelude.dhall) → let Any = ../Any/Type.dhall let Any/toTypeUnchecked = ../Any/toTypeUnchecked.dhall nix let Misc/throw = ../Misc/throw.dhall nix in λ(v : Any) → if nix.builtins.isBool v then Any/toTypeUnchecked Bool v else Misc/throw Bool "Failed to coerce object into Bool"