Having read the above I think that is going in the 'not quite such a good idea' box. However, to clear up some issues;
the 40V was rectified but not smoothed, so the peak would be 56V or so. This must have been enough to light them up dimly. If it were 2 lots of 12 I think I'd have let the magic smoke out
I wasn't thinking of using a capacitor, but a trailing edge dimmer with a say 100 ohm resistor. If 10W at 240 V is 40 mA, the power in the resistor is way less than 1W. When I come across a decent size 100 ohm resistor I might resurrect the idea
Why bother? I just can't bear seeing things go to waste if they can be used for something else, and it keeps the grey matter churning
Thanks for the replies it clarifies one's thinking.