Restricting local variable collection type