Interestingly, the peak voltage of 240V AC (typical) is 330ish+ volts.
Typical house wiring is required to handle 600v due to voltage transients and wear and tear.
So any component rated to 240V dc will fail immediately on AC, and even 400-500V DC is not a good idea.
I guess there is a reason there is a whole category of engineers for this kind of thing.