ensure type for cast is normalized as lowercase and add test case. fixes #42
Merge pull request #43 from vanetix/typecasts

Fix uppercase type casting issues