We have code that casts an object to a short.
type.BusinessAreaID = (short)caType.credit_assessment_biz_areaReference.EntityKey.EntityKeyValues[0].Value;
The object has the value of 2.
This code (unit test) works on the PC of the developer that created the code. But we get a invalid cast exception on the build server and on another dev PC.
The BusinessAreaID is of type short.
The Dll is also in the GAC, we have updated that so that it should be the same.
Anyone have any ideas.