macro | since v1.7.107 | Edit |
(unsafe-cast t x)
EXPERIMENTAL: Subject to change. Unsafely cast a value to a different type.
(core/defmacro unsafe-cast
[t x]
(core/let [cast-expr (core/str "~{} = /** @type {" t "} */ (~{})")]
(core/list 'js* cast-expr x x)))