public static function FindObjectByIntValue($idValue, $propName, $listOfObjects) {
        $match = false;
        foreach ($listOfObjects as $obj) {
            if (intval($obj->$propName()) === $idValue) {
                $match = $obj;
                break;
            }
        }
        return $match;
    }