macro_rules! cast {
($ex:expr; $t:ty) => { ... };
}Expand description
Cast a KBox
If the KDB type is anything other than the expected one, the cast will panic.
ยงExample
let a: KBox<Any> = symbol("Hello").into();
assert_eq!(symbol("Hello"), cast!(a; Atom<Symbol>).value());