Fix casting to int in SLO-Generic
The SLO generics needs integer values. But in some cases converting to int does not work correctly.
For example, the value: "3970.00000000005" cannot be cast to an integer and the evaluation fails. In this case it is necessary to cast first to a float and then to an integer.
Edited by Benedikt Wetzel