public int? GetResultAsInt() { int? result = null; try { result = this["result"].ToObject<int>(); } catch (Exception e) { Debug.WriteLine("{0} : Can not fetch the result attribute", e.ToString()); } return result; }