C
Curious
I got runtime error when the ran the following:
object tshares = mReader["target_qty"];
int targetShares = (int)tshares;
Why can't I cast object to int? The value is shown in database as
2.0000. I thought it was double. However, if I cast it to double, I
would get the same error. Any advice on how to get this fixed? Thanks.
object tshares = mReader["target_qty"];
int targetShares = (int)tshares;
Why can't I cast object to int? The value is shown in database as
2.0000. I thought it was double. However, if I cast it to double, I
would get the same error. Any advice on how to get this fixed? Thanks.