Fix int32 to int64 conversation