Detection of a Type-C QPO during the soft-to-hard transition in Swift J1727.8-1613