Decode the given TomlValue into the type represented by the given type parameter.
See TomlValue.decode for more information about which types can be decoded.