How to convert &[i8] to &[u8]?

If 'as' does not work you can Implement Into