added some very basic type assertions