Cast issue when attempting to pass an integer value from a parent view to an embedded view

The issue involves automatic type casting to a long when passing an integer as a parameter to a subview.

For demonstrative purposes, I have created a parent view and a subview that takes an input parameter, displaying the type of the input parameter through a label.
This is the subview:
image

This is the parameter passed to the subview:

Everything that is assigned to a Perspective property or parameter is coerced into a JSON-compatible form. JSON doesn't distinguish between 32-bit and 64-bit integers, so that difference is lost.

Wherever you really need such datatype information, you will have to separate it into another property or parameter, before any assignment to any Perspective property.

1 Like