Entities should be type-checked before doing anything