make some of these xrtb_window casts a little more typesafe