casts references group/toint/toints, should be groups/toints/touints