Look up the value for key on this and convert it to an integer using strtol.
key
A Device.
Name of property.
The value for key or 0 if key doesn't exist or isn't an integer.