Using struct instead of casts.