convert entity: array to list and list to array