toObjectOrNull