Merge "codec2 hal: type conversion refactoring, step 3" into main