Node-red conversion number to integer or float

I try to make my first steps in node-red to automate some stuff.
I want to change the valueof an input_number but I get an error :

Call-service error. expected float for dictionary value @ data[‘value’]"

I have some similar issues where I need an integer.

How can I convert number to float or integer ?

Can you post your current flow? The answer depends on what nodes you’re using. But if you’re just using a current-state node to get the input number, you can set its “state type” to “number”.