I suppose you could try... but I would (hope/assume) there would be a more common method between inventory types. If there is not let me know and we'll go from there.

In any case, Hardcoded values like this generally do not fly with the core members.