if(value.TryParseJson(out MyType result)) { // Do something with result… }