Basically the title. I am trying to figure out whether or not $Hom(Hom(\bigoplus_{x \in X} \mathbb{Z}, \mathbb{Z})) \cong \bigoplus_{x \in X} \mathbb{Z}$ with the isomorphism $i(y)(f)=f(y)$.
Here is my intuition as to why that might be true: $Hom(\bigoplus_{x \in X} \mathbb{Z}, \mathbb{Z}) = \times_{x \in X} \mathbb{Z}$, since any "functional" in $Hom(\bigoplus_{x \in X} \mathbb{Z}, \mathbb{Z})$ is determined by its values on each entry of $\bigoplus_{x \in X} \mathbb{Z}$ and any homomorphism $\mathbb{Z} \to \mathbb{Z}$ is just multiplication by some whole number, so there is a natural isomorphism from $Hom(\bigoplus_{x \in X} \mathbb{Z}, \mathbb{Z}) \to \times_{x \in X} \mathbb{Z}$ (is this reasoning correct?)
So I am left with showing whether or not $Hom(\times_{x \in X} \mathbb{Z}, \mathbb{Z}) = \bigoplus_{x \in X} \mathbb{Z}$. Again, any "functional" would be determined by its' values on each entry, but it cant be nonzero on infinitely many entries since then we could find a corresponding element on which the functional would not be defined. My question is - is this reasoning fine? Turning it into a formal proof isn't hard, but something still feels "fishy" here.