explicit integer casts to avoid warning
calling methods on native_object does actually work now