Set the type for this TypedElement
