public bool AsBoolean(bool defaultValue) { int value; if (int.TryParse(Value, out value) == false) { return defaultValue; } return value != 0; }