casting issues with that for some reason