Melee/Ranged hybrid.
Damage would be both magical and physical.

The fact that the sword can turn into a staff might be a stance that you activate.