If your caster sugar has small lumps in it, it has been exposed to water or moisture. The caster sugar is still fine to use - simply remove the small lumps and discard.