SelectAsEntity can take a class a argument.
Merge pull request #258 from ngodfraind/exception-handling

SelectAsEntity can take a class a argument.