store/[org.clojure/clojure "1.8.0"] clj::clojure.core/cast

Official Documentation

Add notes
Arities
==================================================
   [c x]

Docstring
==================================================
  Throws a ClassCastException if x is not a c, else returns x.

Source

(defn cast
  "Throws a ClassCastException if x is not a c, else returns x."
  {:added "1.0"
   :static true}
  [^Class c x] 
  (. c (cast x)))

Example 1

Edit
(cast Integer 1)  
;; => 1

Uses on crossclj