display: get rid of reinterpret_casts