Get Object by id

Hello,
How can we get the objreference of an object if we have his Id?

something like this:
var obj = new ObjRef(id);

http://developer.rhino3d.com/api/RhinoCommonWin/html/T_Rhino_DocObjects_ObjRef.htm

Thank you a lot it worked :wink: