safer conv to layer