I used the following code to retrieve an element and I can see the FamilyName parameter and its value in the debugger in Visual Studio. How can cast or what can I do to get the value of the FamilyName? This is for a Fabrication Part.
Element elemType = dbDoc.GetElement(fp.GetTypeId());