Use it or lose it!

Here’s a scenario; I’m wondering if it’s allowed in ISA rules.

  1. Put £10k into a cash ISA
  2. Put £10k into a stocks and shares ISA
    (Different providers).
    Is it then possible to withdraw the £10k cash and put it into the stocks and shares ISA?
    Or vice versa?
    (This would be all in the same tax year).

Thanks in advance