web: Type-cast inputs (fixes #130)