Creating type constraint for app class objects.