Use () instead of [] for casting nested structs in pf