Added toArray conversion ability to YO classes