Working with creature types

Hi again, I am wondering how best to approach the "Choose a creature type" part of cards like Adaptive Automaton. I could hard-code the creature type choice since it will play in a deck with a single creature type throughout, but that's a bit lame and wouldn't be acceptable if someone else managed to put it in play under their own control.
It seems to me that the best way would be to let the player select a creature card and then take its creature type... but what happens if the creature has more than a single creature type? Do functions exist to detect how many types a creature has and be able to loop through the types somehow? Is there a better approach that comes to mind?
It seems to me that the best way would be to let the player select a creature card and then take its creature type... but what happens if the creature has more than a single creature type? Do functions exist to detect how many types a creature has and be able to loop through the types somehow? Is there a better approach that comes to mind?