the named tag of type T or defaultValue if the conversion fails
auto compound = new Compound(new Named!String("test", "value")); assert(is(typeof(compound["test"]) == NamedTag)); assert(is(typeof(compound.get!String("test", null)) == String)); assert(compound.get!String("failed", new String("failed")) == new String("failed")); assert(compound.get!String("?", "string") == new String("string"));
Gets the element at the given index, if exists and can be casted to T. Otherwise evaluates and returns defaultValue.