Explicit casting throughout.