The cap currently sits at level 40, alongside 50 achievements to work through.
Both numbers have moved over the game's life, and CastleVille itself is no longer running, so treat this as the final state rather than a live target. If you're returning to it, expect the servers to be gone.