zeenix: For that, size must be known, so I think your options are:

* Use the same type
* Use alloc
* (If you know the possible types up front) wrap them in some enum type