Retrieve values of a CDT from plugin function

I have a smart plugin function which gives me a CDT as a Typed value as output, how to retrieve the values of the CDT in appian.
Right now I am getting the empty CDT when I call the function :
Plugin Function:
public TypedValue getStandardAddressWithXml(ServiceContext sc, @Parameter String xmlInput) throws Exception {
return typedValue;

Appian Call
fn!getStandardAddressWithXml(rule!AMA_AddressRequestXML)

[AddressLine=, City=, CountryCode=, EffectiveDate=, ExpirationDate=, MailInstruction=, MailStop=, PostalCode=, Province=, RouteCode=, StateCode=, Zip=]

OriginalPostID-217703

OriginalPostID-217703

  Discussion posts and replies are publicly visible