Moves casting to before case statement. Updates readme.