assert cost obj on init

my computer froze when i passed an obj that wasnt really a Cont inst. to
the initializer.
there are other places where asserts like this can be added