Converts the specified object to GOMElement type.
Initially, the object should be either GOMElement or
DSMElement. Otherwise, the function returns null.
Parameters:
obj
elementTypeNames
resolveElementType() function.
instanceOf(), checkElementType(), resolveElementType()
You may call this function in a more method-like style, e.g.:
obj.toElement()
obj.toElement("UseCase")