Not able to access Type Argument for For Each Loop