Provides constructor to convert TaskItem to EventItem