Is it true that you can't use cast iron skillets with a ceramic or glass cooktop?

Hubby got me a bunch of cast irons for Christmas and I was told by a friend that I may never get the privilage of using them because you can’t use them with the type of cook top I have. It is a flat black glass cooktop. If this is true, why is this? Will it harm my cooktop or the cast irons?