Merge "DO NOT MERGE: Fix array casting bug" into rvc-dev