add option to force type (for widget usage)
Merge pull request #2 from phil65/master

add option to force type