Refactor type casting encrypted attributes

Perform type casting in decrypt callback, do not define custom attribute readers.