Fix - Add missing type mismatch error
Refactor - Use extractValue and trapError