title: Convert object to integer
body: <h2>Convert object to integer in PHP</h2>
  
  <p>I want to round figure the value of <code>$row-&gt;getValue();</code> . I used following two functions for that - -</p>
  
  <ol>
  <li>round(x,prec);</li>
  <li>intval(x);</li>
  </ol>
  
  <p>But both function give error  </p>
  
  <blockquote>
    <p>Object of class Zend_Gdata_Analytics_Extension_Metric could not be
    converted to int</p>
  </blockquote>
  
  <p>Now what is the way to overcome from this ??
  Thank you . . .</p>