How not to convert bigint columns to strings in eager loading

The ‘ID’ column of table A in my project is of type bigint.

When I try to get a relation from this table to the related table, EagerLoad converts the bigint to a string and omits the digits.

Because of this, I am having trouble getting the correct values.

Is there any way to do EagerLoading without converting bigint to string?

Leave the ID int, and add a bigint type field, so that you have stability in the table, you can access it in both ways.