You do not try to convert this Object in string,it will not work. Just fetch exact value from that Object.
As a example if you got output as cost.this cost output is Object. so fetch exact value from this as follows
$var=cost->Postage_cost;
$var1=cost->other_cost;