Given a value of unknown type, return a Page or PageArray (depending on $field->derefAsPage setting)
In this case, make sure that it's a WireArray (able to hold multiple values)
Usage
$page = $fieldtypePage->sanitizeValue(Page $page, Field $field, $value);
FieldtypePage methods and properties
API reference based on ProcessWire core version 3.0.236