added template method to return ilwisobject from the items