A duck-type library that I can use with a switch statement.