Until you actually set the Item to something, it’s value will be NULL, thus throwing the error.
You need something on your sitemap to actually set the item’s value.
I would recommend a setpoint rather than a slider, it’s better to set to a defined value.
likeso:
With this you can set the value from 1 to 60 seconds in 1 second intervals.
If you did this and the error is still there, cast the Item like so:
(StairsTimeout.state as DecimalType).longValue
I would also suggest to persist the item, else you will get the same error after a restart of OH.
HTH,
regards,
-OLI