Is there any way to do unsafe conversion of one ref object type to another in 
VM? I can't do `cast[B](a)` in a macros (not for arbitrary types `'cast' from 
tyRef to tyRef`). I tried doing it in several steps, like `a -> int -> b`, but 
this does not work either, (`'cast' from tyInt to tyRef`).

Any hack would be acceptable, I need it to test an (unrelated to the question 
and probably quite stupid) idea, so it does not matter how bad the conversion 
implementation is. Basically anything that would let me do `let itemB: TypeB = 
<???>(itemA)` for arbitrary types and not blow up the compiler in the process.

Reply via email to