Is it possible to switch between Ph.D. departments at the same university?
Whether it can be done or not depends entirely on the regulations of your particular institution. What is much more likely to say is that you will probably not be able to carry your funding over from your old department to your new one. Funding very rarely can be transferred, since it is usually attached to some project or department, rather than any individual.