✅ Invalid cast between interface types
Hello. I'm trying to learn functional programming in C#, so I'm ending up with some unusual code. A part of that is having an array of options marked with their length, like so
Since this is so long, I've defined this
This inevitably means casting to FieldUnits at some point, and doing so is giving me this error
I'm not sure why though, since they seem to be the same. I also swear this was working the other day. Any ideas what's wrong here? Here's a sample line that has this problem
Since this is so long, I've defined this
This inevitably means casting to FieldUnits at some point, and doing so is giving me this error
I'm not sure why though, since they seem to be the same. I also swear this was working the other day. Any ideas what's wrong here? Here's a sample line that has this problem