toArray

Signed-off-by: jmlambert78 <jmlambert78@gmail.com>