Added ability to convert an object to a list.