Add 2 functions to make the type convertion easier.