type casting for training parameters