ensure that EntityRequest is properly type cast