get_object_vars() vs. cast to array - by scribu Are there any differences between get_object_vars($obj) and (array) $obj ? Both seem to return the public properties of the object. Which is better? Read the article