Refactored convertStreamObjectToList method