Yes you can use on an electric stove.... I have used cast iron for years on an electric stove and have no problems. You just have to heat it up slowly don't turn the stove on high and place the cookware on. Cast iron must be heated slowly, as it heats you can increase the temperature and its fine. Its the same concept as never putting a hot cast iron skillet in cold water. Drastic changes in temperature can cause it to seize up. It may take an extra step or two but nothing beats the results!!!
You need to check the owner's manual on your stove. For my GE smooth-top electric stove it says: Cast Iron - not recommended, unless designed specifically for glass cooktops, poor conductivity and slow to absorb heat, will scratch the cooktop surface. Porcelain Enamel on Cast Iron: recommend if bottom of pan is coated.
I have always been told never to use cast iron on electric stoves but don't know if thats also true for the smooth-top. I have alot of cast iron and ruined one grill on our electric stove it cracked it. So we changed it out and put a gas stove in so I can use all my cast iron and didn't like electric stove anyway. If it were me I wouldn't use it on electric (one cracked grill is enough for me.)