If these casual talks don’t lead to humor/joking (since it’s haram with the opposite gender), charming words, development of feelings, or getting too close to them, then it’s ok. Otherwise, if you don’t think you can observe that with them, then it would be haram.