ClojureDocs

Nav

Namespaces

Clojure/Conj 2026 — Charlotte, NC — Sept 30 - Oct 2 Learn More & Get Tickets →

cast

clojure.core

Available since 1.0 (source)
  • (cast c x)
Throws a ClassCastException if x is not a c, else returns x.