This function works as a shortcut of one of the calls:
getServiceAttr(element, attrName).toNumber()
or
getServiceAttr(attrName).toNumber()
See Also:

getServiceAttr(), toNumber()