thevoid: Added ability to cast own types to buffer

It's implemented by structure template specialization
v0.6.3.0