title: Convert between slices of different types
body: <p>I get a byte slice (<code>[]byte</code>) from a UDP socket and want to treat it as an integer slice (<code>[]int32</code>) without changing the underlying array, and vice versa. In C(++) I would just cast between pointer types; how would I do this in Go?</p>