Is there any way to stop haxe from generating ::hx::ClassOf<T>() when passing in a haxe type to native code?

Im making a haxe community account because im genuinely about to lose my mind with this

if i try and pass a haxe type into a native c++ function

function foo(bar:Dynamic) // does cool native stuff

and then i try and call the function like this

foo(Int) // or another type

when the c++ code is generated it becomes ::hx::ClassOf<T>() (so ::hx::ClassOf<int>(), in this instance)
I want it to just be T (or just int) in this context

Is there any way I can do this?