Help with migration to 2024 CTRE

Hello!
I am trying to migrate some swerve drive code to 2024 CTRE libraries (Phoenix 6).
The code below is what I need help migrating to Phoenix 6:
Turning_Motor.set( ControlMode.Position, currentPos + degreesToTicks(m_positionError))
Is there any way to do this in 2024 code?

I did some more research and found this:
// create a position closed-loop request, voltage output, slot 0 configs
final PositionVoltage m_request = new PositionVoltage(0).withSlot(0);
// set position to 10 rotations
m_talonFX.setControl(m_request.withPosition(10));

We found the solution:
Turning_Motor.setControl(PositionVoltage.withPosition(Position));