Declare your array of types outside the forEach (avoid to instantiate a new one for each obj)