The value type is correct, I made sure to assign the right one.
I tried it again on a few different object types (sprite, particles and button) and the problem is still there.
This is my instance variable window after filling it out,
and this is what appears after clicking ok