Related to this awesome cleanup ❤️.
When using custom primary keys, the id attribute works as an alias to the pk. But in case of read_attribute, when reading the id it was not being typecasted after the change.
Also added a deprecation message to type_cast_code according to the conversation in the same commit.
Properly typecast id attribute when using custom primary key
Doh, I didn't realise I had broken the build! Thanks for fixing it.