Can creatures affected by Imprisonment cast spells?

If a creature is targeted by the Imprisonment spell and fails its saving throw, it is forced into a magical restraint; for example a gem stone imprisonment.

Can a creature cast spells while it is restrained by Imprisonment?