Hello again and sorry for the late reply (I was on a small vacation).
Downcasts should really be handled automatically, but if not it must be a bug 🙁
Can you please post a screenshot of your flowscript relevant nodes so that I can see more clearly what could possibly go wrong?
With that said, if you want to make a custom cast, a new simple node will need to be added to FlowCanvas. To do so, please open up Utility.cs file and add this piece of code within the namespace (I will also include this node in the future version just in case).
1
2
3
4
5
6
7
8
9
10
[Category("Utility")]
[Description("Cast input object to type T")]
[ExposeAsDefinition]
publicclassCast<T>:PureFunctionNode<T,object>{
publicoverrideTInvoke(objectobj){
return(T)obj;
}
}
Let me know.
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.