Fix conversions for inputs of unknown type.

Fix #55