Get value from Extract() functions in Java

I need to get value from path that I will use one of the properti from the relations, so I use extract to do it. The cypher runs good when I try in the neo4j browser.

I use record.get("params").asString();
also i try ti use asPath().toString();

But, it is getting error when I run it in my java (Android). This is the error like this:
org.neo4j.driver.v1.exceptions.value.Uncoercible: Cannot coerce LIST OF ANY? to Java String.

How to get the value..? thanks.

Sorry, because I can't delete my own question, and this problem can be resolved, then I answer it myself.

just use

because the return value is as object.