ce un modo piu carino e corretto di scrivere questo?

$parms = $this->array2object($parms);



thx for help!