How to convert a result of one object to string object
<p>I am new to java. There is a method which return a value of type xxx.</p>

<pre><code>   public Cost getTotalCost() {
    return getCost();
}
</code></pre>

<p>I want to convert the getCost() to type string. How do I do it?</p>
