cast strings in struct