I'm writing my first PBNI project now. The project exposes
several classes to PB. I would like to return an object of
type Class1 from one of Class2 functions. The problem is
IPB_Value::SetObject takes a pbobject rather than
IPBX_UserObject or so. Can I create a new Class1, cast it to
pbobject and then pass it to SetObject, or should I use some
more sophisticated method?