Fix type bug: ORM::pk returns a string, not an integer