some basic type convertions