added method to convert an entry instance to an array