A sized cast establishes width, a signed or unsigned cast changes arithmetic interpretation, and a type cast applies a destination type. None of those choices by itself specifies the byte order of an unpacked array or validates an enum encoding.
Build, stream, and round-trip explicitlysystemverilog
typedef struct packed {
logic [7:0] kind;
logic [7:0] len;
logic [15:0] payload;
} packet_t;
byte unsigned bytes [0:3] = '{8'hA5, 8'h3C, 8'h1B, 8'h7E};
byte unsigned roundtrip [0:3];
logic [31:0] word;
logic [39:0] wide;
packet_t packet;
initial begin
word = {>>8{bytes}};
wide = {>>8{bytes}}; // 32-bit stream at [39:8], right-filled with 8'h00
packet = packet_t'(word);
{>>8{roundtrip}} = word;
assert (roundtrip == bytes);
end