@federico-lox The array cast here isn't to silently ignore/accept bad data types (which casting will do) but to make sure this code does the right thing when null is passed.  If we type hint $param, all existing code calling this method with 'null' (which is why the original code was casting) will fail, when they used to work properly.