get rid of C typecast