Revert "Avoid cast on feature table to get geometry type"

This reverts commit 4636d82bed0cb8ac26d694984c5d1e3380d49a91.