Create baseConvert.php

copied from code in master fork.