Fixing problem where it's not casting correctly