Guess entity property type and convert sub-entities if PK is given.