make long RT conversions primitives and correctly add conversions to js.Number