Converts the specified object to GOMElement
type.
Initially, the object should be either GOMElement
or
DSMElement
. Otherwise, the function returns null
.
Parameters:
obj
object to convert
elementTypeNames
If presents, causes to resolve the exact Element Type associated
with this element. The meaning of this parameter is the same as in
resolveElementType()
function.
See Also:
instanceOf(), checkElementType(), resolveElementType()
Tip:
You may call this function in a more method-like style, e.g.:
obj.toElement() obj.toElement("UseCase")