Overriding variant properties

Pardon my ignorance, but is it documented somewhere that you can override variant properties like .stringvalue, .integervalue, etc?

I was just doing some experiments and found that if I have a class that contains a .stringvalue function and store it in a variant, when I call variant.stringvalue, my method gets called, which is pretty handy!

I just want to make sure that this isn’t some undocumented feature that may break in the future…?

Without seeing code its hard to be sure of whats going on
I have an idea but a sample would be good to review to give you a better answer

Never mind.

I forgot that I had added operator_converts as well.
I tried it in a new project with a fresh class and it didn’t work until I added an operator_convert.