Cast integers, floats and booleans