check casts for property initializations (closes #3244)