Make 'prettify' type safe