Converts map element into an integer or returns 0 if conversion is not possible.
key
See getAsIntegerWithDefault