Gets a property with key. Returns the value as int.
key
def The default value if key not found.
def
int? getPropertyAsInt(String key, [int? def]) => getPropertyAs(key, parseInt, def);