Dynamic Type for @exported Variable

Godot Version

v4.6.2.stable.official [71f334935]

Question

I am trying to make an upgrade system, but some of the upgrades set their corresponding values to different Variant.Types. Is it possible to make an @exported variable dynamically change it’s type?

Variant is the dynamic type, remove .Type. To make an Array of variants use Array[Variant] or just Array

gertkeno was right. If I set the type of set_to to Array[Variant], I can choose what type it is!