I have the code

if (!(row.IsNull("bigInt") || row["bigInt"].Equals(String.Empty)))
            {
                this.bigInt = Convert.ToInt64(row["bigInt"]);
            }

But, it's give to me the error: Cannot inplicity convert type 'long' to 'int'. An explicit conversion exists (are you missing a cast?)

what is the data type of this.bigInt??

If this.bigInt is of type int or Int32, you cannot assign an Int64 or a long to it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.