Convert objects to CSV