Weak types in API