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