unsafe-cast

macrosince v1.7.107Edit
(unsafe-cast t x)

Source docstring:
EXPERIMENTAL: Subject to change. Unsafely cast a value to a different type.
Source code @ clojurescript:src/main/clojure/cljs/core.cljc
(core/defmacro unsafe-cast
  [t x]
  (core/let [cast-expr (core/str "~{} = /** @type {" t "} */ (~{})")]
    (core/list 'js* cast-expr x x)))