Add a toArray method on the generic user

An alternative would be to perhaps implement the ArrayAccess interface...

This would be useful for people who may want to array_merge() the user data with other data, without having to construct a new array manually for each individual object property.