code: public static RubyArray<Byte> toList(byte[] bytes) {
      RubyArray<Byte> list = Ruby.Array.create();
      for (byte b : bytes) {
        list.add(b);
      }
      return list;
    }
docs: Converts a byte array to a {@link RubyArray} of Byte.
  
  @param bytes
  a byte array
  @return {@link RubyArray} of Byte