This function works as a type cast operator.
It converts the specified object to GOMAttribute type.
(This is needed to help the expression compiler to match a necessary function or operator.)
When the passed object is an instance of GOMAttribute,
the same object will be returned.
Otherwise, the function returns null.
Tip:
You may use this function in a more method-like style, e.g.:
obj.toAttr()