I think you can use .AsObject() directly instead of ".ToObject() as ObjectIsntance"