Cast Dynamo type to Revit type


I´d like to write a node which does something to an Revit element.

If I use Dynamo nodes (Select Model Element i.e.) it doesn´t give me the Revit element but some wrapper class.

Could someone explain me in short how to cast such an type to the actual Revit element to work with?

The “Getting Started With Dynamo Development” explains the type “Value” and how to cast ist, but it isn´t up to date any more- right?

If it still exists: Which references/using directives do I need to get this type?

Thanks a lot,


Here’s how this works for Python nodes:

This should may you an idea about what you’ll need to reference when building a C# based node.