Why are you casting into a list here?