Translations:FreeCAD Scripting Basics/37/en

or check if an object is derived from one of the basic ones (Part Feature, Mesh Feature, etc):