CAAERS-6661 fixed class cast exception