Decoder can decode objects into interfaces