Moved toRequest into TypedRequest class