While the entire utf8 converter has been switched to Uint8List the type annotation still remains List<int> for this release.
Adding the downcast as this behavior is what we need.
A future dart release should also change the type annotations triggering a linter rule.
see: https://github.com/dart-lang/sdk/issues/52801
Signed-off-by: Nikolas Rimikis <rimikis.nikolas@gmail.com>