public int ToInt32() { int output; if(Int32.TryParse(Value, out output)) { return output; }else{ throw new NotSupportedException("Value is not integer."); } }