SelectAsEntity can take a class a argument.