Properties are cast only if there's a repository linked with the entity.