allow interfaces in structs to be validated