Fixed "ClassCastException"

Fixed "ClassCastException" for custom user FileHandle