Object type conversion error
Hi,
I am trying to convert OpenSpan.ExpressTranslators.TranslatorObject type into OpenSpan.Adapters.Controls.Button type. But at runtime it showing exception as unable to convert. There is no exception at type casting syntax. Bot throwing exception at runtime.
Exception Type: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
Message: "Cannot convert type 'OpenSpan.ExpressTranslators.TranslatorObject' to 'OpenSpan.Adapters.Controls.Button'"
Please let me if any one having some suggestions on this.
Thank you.
Regards,
Raja Gosamsetti
Are you able to attach a screenshot of your automation and your RuntimeLog?. This would help see what you are doing. Those two objects don't seem to be related, so it is unlikely you'd be able to cast one to another. Are you doing that in a script? If so please post that code as well.