py/objarray: Use mp_obj_str_get_str instead of mp_obj_str_get_data.
diff --git a/py/objarray.c b/py/objarray.c
index af75af9..05d28c8 100644
--- a/py/objarray.c
+++ b/py/objarray.c
@@ -162,8 +162,7 @@
     mp_arg_check_num(n_args, n_kw, 1, 2, false);
 
     // get typecode
-    mp_uint_t l;
-    const char *typecode = mp_obj_str_get_data(args[0], &l);
+    const char *typecode = mp_obj_str_get_str(args[0]);
 
     if (n_args == 1) {
         // 1 arg: make an empty array