Added packet cast.