Started using toTemplate() methods.
Added extends to return type of CreateTypes.