Add a function for someone just want to get array

convertArray