Fixed casting bounds