add setter casting