Use toArray() rather than deprecated raw()