How do I cast objects out of HostData comments?

How do I cast objects out of HostData comments?

Here: Unity - Scripting API: HostData.comment

and here http://unity3d.com/support/documentation/Components/net-MasterServer.html

… there is mention of being able to use this to relay information or data:

So far all of my lame attempts have returned only errors. I’ll admit var comment : String puts me off, but they are the docs, and they do say it can work.

Coincidentally if one googles “casting objects from binary data field” the third google result is the master server docs page (a bit circular, if you ask me…)

Hints and suggestions?

I’m a bit surprised… has no one done this? Is it even possible?

Is this something like serializing into text and streaming into the comments field, and then reconstructing it afterwards?

If so, any hints on the best way? I’d like to avoid shooting into the dark…

Yes, that’s all it is, serializing into text. It’s exact same as saying you can send any data via rpc by serializing whatever into a string. You would have to write your own serialization/deserialization to/from a string object in order to use it.