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

getServiceAttr(), toInt()