Added conversion logic to the immuutable option func, to convert float64 to int64 and such