Castles are practical against cannons but only if built with thicker walls than typical.