I run my C# application which is big so I just included a part of the code
My code:
allowGift = Convert.ToInt32(dRow[14]) == 1;
allowInventoryStack = Convert.ToInt32(dRow[15]) == 1;
interactionType = InterractionTypes.GetTypeFromString((string)dRow[16]); //Line of error
And the error of stack trace
System.InvalidCastException: Unable to cast object of typpe 'System.Boolean' to type 'System.String'
dRow? And what is the type ofinteractionType? and what line is causing the error?InteractionTypehas no conversion fromTrueorFalse. I'm sorry to say that your question is not answerable, from the information you've given us.InteractionTypeenum (which includes values such as "football", "teleport", and "firegate"), and make sure that the values you're passing toGetTypeFromStringare in there.