I could not successfully convert the shape to an array of size 10.
What does it mean exactly? It doesn't compile? What error do you get?