added PCObject casting