Add Strict Type Checking for 0 id entities.

Added a strict type check to the identifier so that entities can be processed with an id of 0.