The first is a Dynamo object and the second is a Revit object. Although Dynamo uses the same Revit API that Python does, it uses a wrapper for handling objects in the workspace. This allows Dynamo nodes to interact with each other regardless of whether the objects are from Revit or from Dynamo itself. In python, you’ll often see the UnwrapElement() method. This method converts the Dynamo object back into the appropriate Revit object. There are a number of other methods used for specific type conversions. You can find more information in the Dynamo Primer and here on the forums.
I would say why not do the get current document within python instead. There are some examples of this with the filterelementcollector that should help to guide you on understanding things.