ids function

Extract ids from a List of Objects