I would like to create a function that can take any Collection: List, Array ... of any type and sum the values inside. I tried something like this. But Using AnyVal instead