some type conversions

the read instance from LGrade kinda sucks. beware!