Would landing a robotic probe count as touching the star? I don’t know; that’s sort of a philosophical question. But if you want to touch the star with your hand, then the answer is never. Even when a star cools to room temperature, there’s no way to touch it with your own hand and survive. And if you don’t care about the survival part . . . . . . then technically you could touch the Sun now.