Why does the linked-list return Object in the property opposed to the actual object element shifted from the array?