Autodesk.Revit.DB.Architecture.Room vs Revit.Elements.Room

Hello,
I try to create personal room management class in Python using Dynamo Node. I use FilteredElementCollector in separate node to collect rooms. The tests show that as long as the room exists in Collector’s node, it is an Autodesk.Revit.DB.Architecture.Room class object. However after moving it to another node, it immediately becomes Revit.Elements.Room object.
Because of that I have troubles with using some of the methods (i.e. getting, setting parameters).

Why is it like that? What am I missing here?
Thanks.

Can you show us your python code? The first one (Autodesk.Revit.DB.Architecture.Room) is the native Revit class. The second one (Revit.Elements.Room) is the native Dynamo class. Python will typically rewrap an object on output, however, this is not always the case depending on how you’re handling the object in your code.