move dynamo type comparison inside the dynamo type class