Why not cast MAX_PACKET_SIZE instead ?