As a programmer:
Avoid, where possible, using explicit type conversions (casts).
Always validate input data.