Get true entity type incase proxies are being used