Why are there casts? does find not work if the string is mutable?