How to cast capacitors