1 error[E0605]: non-primitive cast: `u8` as `Vec<u8>`
5 | ^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
7 error[E0605]: non-primitive cast: `*const u8` as `&u8`
11 | ^^^^^^^^ invalid cast
13 help: consider borrowing the value
18 error: aborting due to 2 previous errors
20 For more information about this error, try `rustc --explain E0605`.