def as_int(self, key):
return int(self[key])<EOL>
Express given key's value as an integer, if possible.

This method will raise ``ValueError`` or similar if the value is not
int-appropriate, same as the builtin `int` type.

.. versionadded:: 2.5