Convert entity.d to D