Typescript Convert One Object To Another