> I just tested it and it worked. Is there any problems using this method ?

Of course you can cast refs or ptrs to int and store it in a seq of ints. But 
how do you do the bookkeeping? When you retrieve a value from your list, then 
its looks like an int. So how do you decide if it may be a ref to something. 
(Another problem is the GC, it may not keep objects alive if only ref is a 
casted int.) Other people already told you (in the other thread) which other 
possibilities you have in a static typed language like Nim. Or you can use a 
dynamically typed language like Python. 

Reply via email to